﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ArticleEdit.ascx.cs" Inherits="Controls_AdminControls_ArticleEdit" %>
<table class="edit_content">
    <tr>
        <td class="label">Заголовок
        </td>
        <td class="edit" colspan="3">
            <dx:ASPxTextBox ID="txtName" runat="server" SkinID="Required" MaxLength="512">
                <ValidationSettings ValidationGroup="vgSave">
                    <RequiredField ErrorText="Вкажіть заголовок новини" />
                </ValidationSettings>
            </dx:ASPxTextBox>
        </td>
    </tr>
    <tr>
        <td class="label">Дата публікації
        </td>
        <td class="edit" style="width: 250px;">
            <dx:ASPxDateEdit ID="txtOnDate" runat="server" SkinID="Required">
                <ValidationSettings ValidationGroup="vgSave">
                    <RequiredField ErrorText="Оберіть дату публікації" />
                </ValidationSettings>
            </dx:ASPxDateEdit>
        </td>
        <td class="label">Статус
        </td>
        <td class="edit">
            <dx:ASPxComboBox ID="ddlStatus" runat="server" SkinID="Required">
                <ValidationSettings ValidationGroup="vgSave">
                    <RequiredField ErrorText="Оберіть статус" />
                </ValidationSettings>
            </dx:ASPxComboBox>
        </td>
    </tr>
    <tr>
        <td class="label">Головний блок
        </td>
        <td class="edit">
            <dx:ASPxComboBox ID="ddlDisplayOption" runat="server" SkinID="Required">
                <ValidationSettings ValidationGroup="vgSave">
                    <RequiredField ErrorText="Оберіть тип відображення" />
                </ValidationSettings>
            </dx:ASPxComboBox>
        </td>
    </tr>
    <tr>
        <td colspan="4">
            <div class="grouped">
                <div class="title">
                    Короткий зміст статті
                </div>
                <dx:ASPxMemo ID="txtShortDescription" runat="server" Height="71px" Width="973px" SkinID="Required">
                    <ValidationSettings ValidationGroup="vgSave">
                        <RequiredField ErrorText="Заповніть короткий зміст статті" />
                    </ValidationSettings>
                </dx:ASPxMemo>
            </div>
        </td>
    </tr>
    <tr>
        <td colspan="4">
            <div class="grouped">
                <div class="title">
                    Повний текст статті
                </div>
                <dx:ASPxHtmlEditor ID="txtDescription" runat="server" Width="100%">
                    <Toolbars>
                        <dx:HtmlEditorToolbar Name="StandardToolbar1">
                            <Items>
                                <dx:ToolbarCutButton>
                                </dx:ToolbarCutButton>
                                <dx:ToolbarCopyButton>
                                </dx:ToolbarCopyButton>
                                <dx:ToolbarPasteButton>
                                </dx:ToolbarPasteButton>
                                <dx:ToolbarPasteFromWordButton>
                                </dx:ToolbarPasteFromWordButton>
                                <dx:ToolbarUndoButton BeginGroup="True">
                                </dx:ToolbarUndoButton>
                                <dx:ToolbarRedoButton>
                                </dx:ToolbarRedoButton>
                                <dx:ToolbarRemoveFormatButton BeginGroup="True">
                                </dx:ToolbarRemoveFormatButton>
                                <dx:ToolbarSuperscriptButton BeginGroup="True">
                                </dx:ToolbarSuperscriptButton>
                                <dx:ToolbarSubscriptButton>
                                </dx:ToolbarSubscriptButton>
                                <dx:ToolbarInsertOrderedListButton BeginGroup="True">
                                </dx:ToolbarInsertOrderedListButton>
                                <dx:ToolbarInsertUnorderedListButton>
                                </dx:ToolbarInsertUnorderedListButton>
                                <dx:ToolbarIndentButton BeginGroup="True">
                                </dx:ToolbarIndentButton>
                                <dx:ToolbarOutdentButton>
                                </dx:ToolbarOutdentButton>
                                <dx:ToolbarInsertLinkDialogButton BeginGroup="True">
                                </dx:ToolbarInsertLinkDialogButton>
                                <dx:ToolbarUnlinkButton>
                                </dx:ToolbarUnlinkButton>
                                <dx:ToolbarInsertImageDialogButton>
                                </dx:ToolbarInsertImageDialogButton>
                                <dx:ToolbarTableOperationsDropDownButton BeginGroup="True">
                                    <Items>
                                        <dx:ToolbarInsertTableDialogButton BeginGroup="True">
                                        </dx:ToolbarInsertTableDialogButton>
                                        <dx:ToolbarTablePropertiesDialogButton BeginGroup="True">
                                        </dx:ToolbarTablePropertiesDialogButton>
                                        <dx:ToolbarTableRowPropertiesDialogButton>
                                        </dx:ToolbarTableRowPropertiesDialogButton>
                                        <dx:ToolbarTableColumnPropertiesDialogButton>
                                        </dx:ToolbarTableColumnPropertiesDialogButton>
                                        <dx:ToolbarTableCellPropertiesDialogButton>
                                        </dx:ToolbarTableCellPropertiesDialogButton>
                                        <dx:ToolbarInsertTableRowAboveButton BeginGroup="True">
                                        </dx:ToolbarInsertTableRowAboveButton>
                                        <dx:ToolbarInsertTableRowBelowButton>
                                        </dx:ToolbarInsertTableRowBelowButton>
                                        <dx:ToolbarInsertTableColumnToLeftButton>
                                        </dx:ToolbarInsertTableColumnToLeftButton>
                                        <dx:ToolbarInsertTableColumnToRightButton>
                                        </dx:ToolbarInsertTableColumnToRightButton>
                                        <dx:ToolbarSplitTableCellHorizontallyButton BeginGroup="True">
                                        </dx:ToolbarSplitTableCellHorizontallyButton>
                                        <dx:ToolbarSplitTableCellVerticallyButton>
                                        </dx:ToolbarSplitTableCellVerticallyButton>
                                        <dx:ToolbarMergeTableCellRightButton>
                                        </dx:ToolbarMergeTableCellRightButton>
                                        <dx:ToolbarMergeTableCellDownButton>
                                        </dx:ToolbarMergeTableCellDownButton>
                                        <dx:ToolbarDeleteTableButton BeginGroup="True">
                                        </dx:ToolbarDeleteTableButton>
                                        <dx:ToolbarDeleteTableRowButton>
                                        </dx:ToolbarDeleteTableRowButton>
                                        <dx:ToolbarDeleteTableColumnButton>
                                        </dx:ToolbarDeleteTableColumnButton>
                                    </Items>
                                </dx:ToolbarTableOperationsDropDownButton>
                                <dx:ToolbarFullscreenButton BeginGroup="True">
                                </dx:ToolbarFullscreenButton>
                            </Items>
                        </dx:HtmlEditorToolbar>
                        <dx:HtmlEditorToolbar Name="StandardToolbar2">
                            <Items>
                                <dx:ToolbarParagraphFormattingEdit Width="120px">
                                    <Items>
                                        <dx:ToolbarListEditItem Text="Normal" Value="p" />
                                        <dx:ToolbarListEditItem Text="Heading  1" Value="h1" />
                                        <dx:ToolbarListEditItem Text="Heading  2" Value="h2" />
                                        <dx:ToolbarListEditItem Text="Heading  3" Value="h3" />
                                        <dx:ToolbarListEditItem Text="Heading  4" Value="h4" />
                                        <dx:ToolbarListEditItem Text="Heading  5" Value="h5" />
                                        <dx:ToolbarListEditItem Text="Heading  6" Value="h6" />
                                        <dx:ToolbarListEditItem Text="Address" Value="address" />
                                        <dx:ToolbarListEditItem Text="Normal (DIV)" Value="div" />
                                    </Items>
                                </dx:ToolbarParagraphFormattingEdit>
                                <dx:ToolbarFontNameEdit>
                                    <Items>
                                        <dx:ToolbarListEditItem Text="Times New Roman" Value="Times New Roman" />
                                        <dx:ToolbarListEditItem Text="Tahoma" Value="Tahoma" />
                                        <dx:ToolbarListEditItem Text="Verdana" Value="Verdana" />
                                        <dx:ToolbarListEditItem Text="Arial" Value="Arial" />
                                        <dx:ToolbarListEditItem Text="MS Sans Serif" Value="MS Sans Serif" />
                                        <dx:ToolbarListEditItem Text="Courier" Value="Courier" />
                                    </Items>
                                </dx:ToolbarFontNameEdit>
                                <dx:ToolbarFontSizeEdit>
                                    <Items>
                                        <dx:ToolbarListEditItem Text="1 (8pt)" Value="1" />
                                        <dx:ToolbarListEditItem Text="2 (10pt)" Value="2" />
                                        <dx:ToolbarListEditItem Text="3 (12pt)" Value="3" />
                                        <dx:ToolbarListEditItem Text="4 (14pt)" Value="4" />
                                        <dx:ToolbarListEditItem Text="5 (18pt)" Value="5" />
                                        <dx:ToolbarListEditItem Text="6 (24pt)" Value="6" />
                                        <dx:ToolbarListEditItem Text="7 (36pt)" Value="7" />
                                    </Items>
                                </dx:ToolbarFontSizeEdit>
                                <dx:ToolbarBoldButton BeginGroup="True">
                                </dx:ToolbarBoldButton>
                                <dx:ToolbarItalicButton>
                                </dx:ToolbarItalicButton>
                                <dx:ToolbarUnderlineButton>
                                </dx:ToolbarUnderlineButton>
                                <dx:ToolbarStrikethroughButton>
                                </dx:ToolbarStrikethroughButton>
                                <dx:ToolbarJustifyLeftButton BeginGroup="True">
                                </dx:ToolbarJustifyLeftButton>
                                <dx:ToolbarJustifyCenterButton>
                                </dx:ToolbarJustifyCenterButton>
                                <dx:ToolbarJustifyRightButton>
                                </dx:ToolbarJustifyRightButton>
                                <dx:ToolbarBackColorButton BeginGroup="True">
                                </dx:ToolbarBackColorButton>
                                <dx:ToolbarFontColorButton>
                                </dx:ToolbarFontColorButton>
                            </Items>
                        </dx:HtmlEditorToolbar>
                    </Toolbars>
                    <Settings AllowHtmlView="false" />
                    <SettingsResize AllowResize="true" MinWidth="994" MaxWidth="994" MinHeight="350" />
                    <SettingsValidation ValidationGroup="vgSave" >
                        <RequiredField IsRequired="True" ErrorText="Текст статті не може бути пустим"></RequiredField>
                    </SettingsValidation>
                </dx:ASPxHtmlEditor>
            </div>
        </td>
    </tr>
    <tr>
        <td colspan="4">
            <div class="button">
                <dx:ASPxButton ID="btnOk" runat="server" Text="Зберегти" SkinID="Blue" />
            </div>
            <div class="button">
                <dx:ASPxButton ID="btnCancel" runat="server" Text="Назад" SkinID="Red" />
            </div>
        </td>
    </tr>
</table>
<dx:ASPxCallback ID="clbkSave" runat="server" />
